package com.seeyon.apps.kk.controller;

import java.util.Date;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;

import com.seeyon.apps.kk.manager.datasync.AbstractDataSyncManager;
import com.seeyon.apps.kk.manager.datasync.AbstractInterfaceForSeep;

public class KkInfoController extends KkBaseController
{
  private AbstractInterfaceForSeep kkMeetAndPersoDataSync;
  private AbstractInterfaceForSeep kkMeetAndPersonDataSync;
  private AbstractInterfaceForSeep kkMeetAndPersonnDataSync;
  private AbstractDataSyncManager kkAribaDataSync;
  private AbstractDataSyncManager kkSeepDataSync;
  private AbstractDataSyncManager kkAribaAndSeepDataSync;
  private AbstractDataSyncManager kkPoDataSync;
  private AbstractDataSyncManager kkPoLineDataSync;
  
 
  public AbstractDataSyncManager getKkPoDataSync() {
	return kkPoDataSync;
}
public void setKkPoDataSync(AbstractDataSyncManager kkPoDataSync) {
	this.kkPoDataSync = kkPoDataSync;
}
public AbstractDataSyncManager getKkPoLineDataSync() {
	return kkPoLineDataSync;
}
public void setKkPoLineDataSync(AbstractDataSyncManager kkPoLineDataSync) {
	this.kkPoLineDataSync = kkPoLineDataSync;
}
public AbstractInterfaceForSeep getKkMeetAndPersoDataSync() {
	return kkMeetAndPersoDataSync;
}
public void setKkMeetAndPersoDataSync(AbstractInterfaceForSeep kkMeetAndPersoDataSync) {
	this.kkMeetAndPersoDataSync = kkMeetAndPersoDataSync;
}
public AbstractInterfaceForSeep getKkMeetAndPersonDataSync() {
	return kkMeetAndPersonDataSync;
}
public void setKkMeetAndPersonDataSync(AbstractInterfaceForSeep kkMeetAndPersonDataSync) {
	this.kkMeetAndPersonDataSync = kkMeetAndPersonDataSync;
}
public AbstractInterfaceForSeep getKkMeetAndPersonnDataSync() {
	return kkMeetAndPersonnDataSync;
}
public void setKkMeetAndPersonnDataSync(AbstractInterfaceForSeep kkMeetAndPersonnDataSync) {
	this.kkMeetAndPersonnDataSync = kkMeetAndPersonnDataSync;
}
public AbstractDataSyncManager getKkAribaAndSeepDataSync() {
	return kkAribaAndSeepDataSync;
}
public void setKkAribaAndSeepDataSync(AbstractDataSyncManager kkAribaAndSeepDataSync) {
	this.kkAribaAndSeepDataSync = kkAribaAndSeepDataSync;
}
public AbstractDataSyncManager getKkSeepDataSync() {
	return kkSeepDataSync;
}
public void setKkSeepDataSync(AbstractDataSyncManager kkSeepDataSync) {
	this.kkSeepDataSync = kkSeepDataSync;
}
public AbstractDataSyncManager getKkAribaDataSync() {
	return kkAribaDataSync;
}
public void setKkAribaDataSync(AbstractDataSyncManager kkAribaDataSync) {
	this.kkAribaDataSync = kkAribaDataSync;
}

  //SeepAndAriba数据整合
  public ModelAndView loadAribaAndSeep(HttpServletRequest request, HttpServletResponse response) throws Exception {
	  this.kkAribaAndSeepDataSync.start();
	return this.ajaxDoneSuccess("同步结束================"+new Date());
  }
  //Seep数据整合
  public ModelAndView loadSeepData(HttpServletRequest request, HttpServletResponse response) throws Exception {
	  this.kkSeepDataSync.start();
	return this.ajaxDoneSuccess("同步结束================"+new Date());
  }
  
  //Ariba数据整合
  public ModelAndView loadAribaDate(HttpServletRequest request, HttpServletResponse response) throws Exception {
	  this.kkAribaDataSync.start();
	return this.ajaxDoneSuccess("同步结束================"+new Date());
  }

  //SEEP活动数据明细
  public ModelAndView loadSEEPActivities(HttpServletRequest request, HttpServletResponse response) throws Exception {
	  this.kkMeetAndPersoDataSync.start1();
	return this.ajaxDoneSuccess("同步结束================"+new Date());
  }
  
  //参会明细
  public ModelAndView loadHCPMeetingDetails(HttpServletRequest request, HttpServletResponse response) throws Exception {
	  this.kkMeetAndPersonDataSync.start2();
	return this.ajaxDoneSuccess("同步结束================"+new Date());
  }
  
  //讲师明细
  public ModelAndView loadHCPTeachers(HttpServletRequest request, HttpServletResponse response) throws Exception {
	  this.kkMeetAndPersonnDataSync.start3();
	return this.ajaxDoneSuccess("同步结束================"+new Date());
  }
  //PO数据同步
  public ModelAndView loadPodate(HttpServletRequest request, HttpServletResponse response) throws Exception {
	  this.kkPoDataSync.start();
	return this.ajaxDoneSuccess("同步结束================"+new Date());
  }
  
//POLINE数据同步
  public ModelAndView loadPoLinedate(HttpServletRequest request, HttpServletResponse response) throws Exception {
	  this.kkPoLineDataSync.start();
	return this.ajaxDoneSuccess("同步结束================"+new Date());
  }
}